def in_the_middle(x, *y, z):
  print(x, y, z)

in_the_middle(1, 2, 3, 4, 5, 6, z = 7)